package com.aaron.springScan;

import com.aaron.springScan.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @ClassName Test1
 * @description:
 * @author: 荣燊
 * @create: 2021-06-30 15:44
 **/
public class Test1 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext appcationContext = new
                AnnotationConfigApplicationContext("com.aaron.springScan.service");

        // 得到这个类
        UserService userService = (UserService)appcationContext.getBean("userService");

        System.out.println(userService);
    }
}
